<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('Positions/index')}">广告列表</a></li>
			<li><a href="{:U('Positions/add')}">添加广告位</a></li>
		</ul>
		<form class="js-ajax-form" action="{:U('Positions/listorders')}" method="post">
			<div class="table-actions">
				<button type="submit" class="btn btn-primary btn-small js-ajax-submit">{:L('SORT')}</button>
			</div>
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="50">ID</th>
						<th>广告位置</th>
						<th width="80">广告图片</th>
						<th width="180">操作</th>
					</tr>
				</thead>
				<tbody>
					<volist name="list" id="vo">
						<tr>
							<td align="center">{$vo.id}</td>
							<td >{$vo.name}</td>
							<td><img width="100" height="100" src="{:sp_get_image_preview_url($vo['img'])}" /></td>
							<td align="center">
									<a href="{:U('Positions/edit',array('id'=>$vo['id']))}">编辑</a>|
									<a href="{:U('Positions/delete',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="删除">删除</a>
							</td>
						</tr>
					</volist>
				</tbody>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script>
		$(function() {

			$("#navcid_select").change(function() {
				$("#mainform").submit();
			});

		});
	</script>
</body>
</html>